using System;
using System.Collections;
using System.Collections.Generic;
using FireStarter.Base;
using FireStarterModeller.BO;
using Habanero.Base;
using Habanero.Base.Exceptions;
using Habanero.BO;
using Habanero.BO.ClassDefinition;
using NUnit.Framework;

namespace FireStarterModeller.Test.BO
{
    /// <summary>
    /// Provides a place to write custom tests for UIGridFilterProp objects.
    /// This file is only written once and can be changed.  The Def file
    /// attached to this as a dependent is rewritten with each regeneration
    /// and contains the standard tests for UIGridFilterProp.
    /// Regenerate this test project whenever there have been changes to the
    /// business objects.
    /// If tests are failing due to a unique setup in your application,
    /// you can either override the Create methods in TestUtils, or you
    /// can add the test to the ignore list below and reimplement it here.
    /// </summary>
    public partial class TestUIGridFilterProp
    {

        [Test]
        public void Test_ToString()
        {
            //---------------Set up test pack-------------------
            UIGridFilterProp uiField = TestUtilsUIGridFilterProp.CreateUnsavedValidUIGridFilterProp();
            //---------------Assert Precondition----------------
            Assert.IsNotNull(uiField.UIGridFilter);
            Assert.IsNotNull(uiField.PropertyName);
            //---------------Execute Test ----------------------
            string actualToString = uiField.ToString();
            //---------------Test Result -----------------------
            Assert.AreEqual(uiField.UIGridFilter + " - " + uiField.PropertyName, actualToString);
        }
    }


}